package com.happe.foodeasy.service;

import com.happe.foodeasy.dto.CustomerDto;
import org.springframework.stereotype.Service;

public interface CustomerService {
    /**
     * This method is used to check username is existed or not according to
     * username param.
     *
     * @param username the username that should be checked
     * @return if is true, means existed, otherwise not.
     */
    boolean checkUsernameExist(String username);

    /**
     * This method is used to save one user's information
     *
     * @param customerDto target user
     */
    void saveOne(CustomerDto customerDto);

    /**
     * check whether target user is exist or not.
     *
     * @param customerDto target user that should be checked
     * @return true if exist, otherwise false
     */
    boolean checkUserExist(CustomerDto customerDto);
}
